package cn.edu.day03;

import java.io.UnsupportedEncodingException;

public class Test {
    public static void main  (String [] args)
    {
        String urlStr="http://localhost:8080/login.do";
        int i=urlStr.indexOf("login");
        int j=urlStr.indexOf('.');
        System.out.println(urlStr.substring(i,j));
//        System.out.println(i);
//        System.out.println(j);
    }
}
